import instance from '@/utils/request'

export function getActivity (page, pageSize) {
  return instance.get(`/api/activity?page=${page}&pageSize=${pageSize}`)
}

export function addActivity (form) {
  return instance.post('/api/activity', form)
}

export function changeActivity (from) {
  console.log(from)
  return instance.put('/api/activity', from)
}

export function deleteActive (idList) {
  const str = '/api/activity/' + idList.map(item => item)
  return instance.delete(str)
}
